//
#include <stdio.h>
#include <stdlib.h>
int c = 0;
void move(int n, char x, char z)
{
    printf("%d.move disk %d from %c to %c \n", ++c, n, x, z);
}

void hanoi(int n, char x, char y, char z)
{
    //
    if (n == 1)
        move(1, x, z);
    else
    {
        hanoi(n - 1, x, z, y);
        move(n, x, z);
        hanoi(n - 1, y, x, z);
    }
}
// mark
void hanoi_1(int n, char x, char y, char z)
{
}
int main()
{
    /*******************code*******************/
    hanoi(2, 'x', 'y', 'z');
    /******************************************/
    fflush(stdin);

    printf("\n\n****************************\n");
    printf("Press Enter key to continue\n");
    getchar();
    return 0;
    /******************************************/
}
